package com.bailian.spring.ioc.basic_factorybean;

import com.bailian.spring.ioc.basic_factorybean.bean.Toy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author gaoxu
 * date: Created on 2021/11/1 下午1:41
 */
public class FactoryBeanApplication {
    public static void main(String[] args) {

        ApplicationContext ctx = new AnnotationConfigApplicationContext();

        Toy toy = ctx.getBean(Toy.class);
        System.out.println(toy);
    }
}
